<template>
  <view>
	<web-view v-if="status" :src="videoUrl" width="100%" height="100rpx"></web-view>
  </view> 
</template>

<script>
  export default {
    data() {
      return {
		videoUrl:'',
		status:false
      };
    },
    onLoad(options) {
		console.log('预览开始', options);
      // pdf预览路径拼接，options是请求后端路径的页面值传参的
      this.pdfUrl = options.afterurl;
	  this.status = true;
    },
    methods:{
      back2Index(){
        uni.navigateBack()
      },
    }
  }
</script>

<style scoped>
.wrapper{
  background-color: #f3f4f6;
  .main{
    margin-top: 88rpx;
  }
}
</style>